#include "hypo_header.h"

class hypo {
	int   hyp;
	float rank_p;
	float rank_n;

	public:
		hypo() {
			   this->hyp = __DEFAULT_HYPO;
			this->rank_p = __DEFAULT_HYPO_RANK;
			this->rank_n = __DEFAULT_HYPO_RANK;
		}
		void rateHypo( float r ) {
			if ( r > 0 ) {
				this->rank_p = this->rank_p + r;
			} else {
				this->rank_n = this->rank_n + r;
			}
		}
		int getHypo() {
			return this->hyp;
		}
		void setHypo( int h ) {
			this->hyp = h;
		}
		void reset() {
			this->rank_p = __DEFAULT_HYPO_RANK;
			this->rank_n = __DEFAULT_HYPO_RANK;
		}
		float getPos() {
			return this->rank_p;
		}
		float getNeg() {
			return this->rank_n;
		}
};
